<!DOCTYPE html>
<html>
<head>
    <title>浮动布局</title>
    <style>
        div {
            background-color: rosybrown;
            height: 100px;
            width: 100px;
        }
        .inlineBox{
            display: inline-block;
        }
        .floatLeft {
            float: left;
        }
        .floatRight {
            float: right;
        }
        
    </style>
</head>
<body>
    <h4>inline-block</h4>
    <div class="inlineBox"></div>
    <div class="inlineBox"></div>
    <div class="inlineBox"></div>
    <h4>左浮动</h4>
    <div class="floatLeft"></div>
    <div class="floatLeft"></div>
    <div class="floatRight"></div>
    <div class="floatRight"></div>
</body>
</html>